package Ex1;

import java.util.Scanner;

public class Ex03_Q6 {

	public static void main(String[] args){
		
		Scanner scan = new Scanner(System.in);
		
		int a;
		
		while(true){
		System.out.println("구구단을 입력하시오.");
		a=scan.nextInt();
		
		if(a>=1 && a<=9){
		for(int dan=1; dan<=9; dan++)
			System.out.println(a+"*"+dan+"="+a*dan);
		
		}
	
		else 
			System.out.println("잘못 입력하였습니다.");
		}
	
	}
}